<template>
  <div :id="module.id" v-if="isAlready&&module.props.visible"   class="showModuleClass" :style="'width:'+module.props.width+module.props.widthUnit+';height:'+module.props.height+module.props.heightUnit+';'">
    <div style="width: 100%;float: left;">
      <ex-module :model="model" :modules="modules" :module="module"></ex-module>
    </div>
  </div>
</template>
<script>


import ExModule from "@/views/asset/card/module/module.vue";

export default {
  name: "moduleShow",
  components: {ExModule},
  props: {
    model: {type: Object, default: {}},
    modules: {type: Array, default: []},
    module: {type: Object, default: null},
  },
  data() {
    return {
      isAlready: false,
    }
  },
  created() {
    this.isAlready = true;
  },
  methods: {}
}
</script>

<style>
.showModuleClass{
  float: left;
  padding-left: 0px;
  padding-right: 0px;
  margin-top: 10px;
}

.documentDetail .showModuleClass .el-card__body{
  padding-left: 0px;
  padding-right: 0px;

}
</style>
